<?php
	require_once '../../controller/relatorios/' . basename(__FILE__);
	require_once '../../model/Perfil.class.php';
	$pagina[0] = array( 'Terceirizado x Consist' );
    require_once '../../template/header.php';
?>
<ul class="navmenu">
	<li>
		<a href="terceirizadoConsist.php" target="_blank" class="imprimir">
		  Relatório Geral
		</a>
	</li>
</ul>
<div id="conteudo">
    <form method="post" action="<?php echo basename(__FILE__);?>" >
        <?php TMensagens::exibirStatus( $erro, $sucesso ) ?>
<?php   $criterio = array();
        
        $d = new TDataTable(new ViewConsistSgc(), 'candidatoid', $criterio, array(
            'checkColumn' => FALSE,
            'editLink' => 'terceirizadoConsist.php?candidatoid=',
            'editHeader' => '',
            'editClass' => 'relatorio',
            'editTarget' => '_blank' ));
        
        $d->addColumnsData(array(
            array('name'=>'cpf', 'mask'=>TDataTableColumn::MASK_CPF), 
            array('name'=>'nmpessoa', 'header'=>'Nome')));
            
        echo $d->render(); ?>       
    </form>
</div>
<?php require_once '../../template/footer.php'; ?>